package j05changyonglei;

public class J3object {
    public static void main(String[] args) {
        Object o1 = new Object();
        System.out.println(o1.equals(new Object()));
        System.out.println("o1 = " + o1);//16进制地址
        System.out.println(o1.hashCode());//10
        /*
        0x4554617c
1163157884
         */
        System.out.println(0x4554617c);
    }
}

class Cat{
    String name;

    public Cat(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Cat{" +
                "name='" + name + '\'' +
                '}';
    }
}

class CatTest{
    public static void main(String[] args) {
        System.out.println(new Cat("加菲猫"));
    }
}
